import Layout from '@/layout/index.vue'
import { markRaw } from 'vue'

export default [
  {
    path: '/',
    component: markRaw(Layout),
    redirect: '/list',
    name: 'Dashboard',
    meta: {
      title: '账户管理',
      icon: 'icon-107'
    },
    children: [
      {
        path: 'list',
        component: () => import('@/views/account/list.vue'),
        name: 'AccountList',
        meta: {
          title: '公司账户'
        }
      },
      {
        path: 'role',
        component: () => import('@/views/system/role/index.vue'),
        name: 'SystemRole',
        meta: {
          title: '岗位管理'
        }
      },
      {
        path: 'role/edit',
        component: () => import('@/views/system/role/edit.vue'),
        name: 'SystemRoleEdit',
        meta: {
          title: '添加岗位',
          hidden: true,
          activeMenu: 'SystemRole'
        }
      },
      {
        path: 'authority/merchant',
        component: () => import('@/views/system/authority/index.vue'),
        name: 'MerchantAuthority',
        meta: {
          title: '商家资源项'
        }
      }
    ]
  }
]
